/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器布局 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.nav-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li {
    margin: 5px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #fff;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-left-color: #fff;
}

.nav-link i {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: calc(100% - 280px);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.text-content h2 {
    font-size: 28px;
    color: #34495e;
    margin-bottom: 20px;
}

.text-content h3 {
    font-size: 22px;
    color: #2980b9;
    margin: 25px 0 15px;
}

.text-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: #555;
}

.text-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.text-content li {
    margin-bottom: 8px;
    color: #555;
}

/* 特色样式组件 */
.feature-grid,
.works-gallery,
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card,
.work-item,
.method-card,
.impact-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover,
.work-item:hover,
.method-card:hover,
.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.feature-card i,
.work-item .work-icon,
.method-card i,
.impact-item i {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-card h4,
.work-item h4,
.method-card h4,
.impact-item h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 工艺流程样式 */
.process-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

/* 图片样式 */
.image-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.image-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.image-caption {
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
    font-size: 14px;
}

/* 参考资料样式 */
.reference-list {
    margin: 20px 0;
}

.reference-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reference-item i {
    font-size: 24px;
    color: #667eea;
    margin-right: 15px;
}

.reference-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.reference-item a {
    color: #667eea;
    text-decoration: none;
}

.reference-item a:hover {
    text-decoration: underline;
}

/* 移动端样式 */
.mobile-menu-toggle,
.close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #667eea;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: white;
        padding: 10px;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-section h1 {
        font-size: 28px;
    }
    
    .text-content h2 {
        font-size: 24px;
    }
    
    .feature-grid,
    .works-gallery,
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .content-section h1 {
        font-size: 24px;
    }
    
    .text-content h2 {
        font-size: 20px;
    }
    
    .text-content h3 {
        font-size: 18px;
    }
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}
